package com.lsl.abstract_factory.example;

import com.lsl.abstract_factory.example.AbstractFactory.SkinFactory;
import com.lsl.abstract_factory.example.AbstractProduct.Button;
import com.lsl.abstract_factory.example.AbstractProduct.ComboBox;
import com.lsl.abstract_factory.example.AbstractProduct.TextField;
import com.lsl.abstract_factory.example.ConcreteFactory.SpringSkinFactory;

/**
 * description:
 *
 * @author: liushengli
 * data: 2022/12/14
 */
public class Client {
    public static void main(String args[]) {
        //使用抽象层定义
        SkinFactory factory = new SpringSkinFactory();
        Button bt;
        TextField tf;
        ComboBox cb;
        bt = factory.createButton();
        tf = factory.createTextField();
        cb = factory.createComboBox();
        bt.display();
        tf.display();
        cb.display();
    }
}
